import { createApp } from 'vue'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css'
import ColorPicker from 'colorpicker-v3'  // 注册组件
import 'colorpicker-v3/style.css' // 引入样式文件
import { createPinia } from 'pinia'
import App from './App.vue'
import '@/assets/styles/iconfont.css'
import router from './router'
import { useDirective } from './directive'
import * as echarts from 'echarts'

const app = createApp(App)
app.config.globalProperties.$echarts = echarts
useDirective(app)
app.use(router)
app.use(ColorPicker)
app.use(Antd)
app.use(createPinia())
app.mount('#app')
